package com.fenshengou.xsm;

import cc.bodyplus.sdk.ble.dfu.DfuListener;
import cc.bodyplus.sdk.ble.utils.DeviceInfo;

import android.util.Log;
import android.widget.Toast;

/**
 * Created by Shihoo.Wang 2019/3/21
 * Email shihu.wang@bodyplus.cc  451082005@qq.com
 * <p>
 * 用来显示升级时的UI
 */
public class BPDfuListener implements DfuListener {

    @Override
    public void onSucceed() {
       Log.d("wsh", "onSucceed : ");
        // Toast.makeText(this, "onSucceed", Toast.LENGTH_SHORT).show();
        
    }

    @Override
    public void onError() {
       Log.d("wsh", "onError : ");
// Toast.makeText(this, "onError", Toast.LENGTH_SHORT).show();
    }

    @Override
    public void onBleOff() {
// Toast.makeText(this, "onBleOff", Toast.LENGTH_SHORT).show();

    }

    @Override
    public void onProgress(int percent) {
       Log.d("wsh", "percent : "+percent);
// Toast.makeText(this, "onProgress", Toast.LENGTH_SHORT).show();

    }

    @Override
    public void onStart(int status, DeviceInfo device) {
// Toast.makeText(this, "onStart", Toast.LENGTH_SHORT).show();
        

    }
}
